
#ifndef THREADSQL_H
#define THREADSQL_H

#include <QThread>


class BlockingSocket;

class ThreadSql : public QThread
{
	Q_OBJECT
	struct mesaj
	{
		char mesaje[256];
		int bufflen;
	};
	
	
	struct autentificare
	{
		char cui[14];
		char vermin[33];
		char codprog[3];
		char verprog[6];
		char serprog[11];
	};

public:
        ThreadSql (int socketDescriptor,  QObject *parent = 0 );
        ~ThreadSql();
	void run();

private:
	int m_socketDescriptor;
	BlockingSocket *m_sock;
	QString dbConnection;

 signals:

    //void  killThread();

};

#endif
